<template>
  <div>
      <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="item in newinfolist" :key="item.id">
						<div class="mui-media-body">
							  {{item.title}}
                              <div class="redian">
                                  <span>左边{{item.add_time | datefmt('YYYY-MM-DD HH:mm:ss')}}</span>
                                  <span>右边{{item.click}}</span>
                              </div>
						</div>
				</li>

			</ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
         getnews:'',
         newinfolist:[],
    }
  },

  methods: {
      
   initList(){
 
      this.axios.get(`/api/getnew/${this.getnews}`).then(res=>{
           if(res.status ===200){
             console.log(res)
             this.newinfolist = res.data.message;
           }
      })
   }
  },
  created () {
      this.getnews= this.$route.params.id;
     this.initList();
  }
}
</script>

<style lang='scss'>

</style>

